﻿using System.Collections.Generic;
using System.Data;
namespace WPFExcelReport
{
    public partial class VAPKOPF
    {

        public void Insert(DataRow _dwAPK)
        {
            DAPK01(_dwAPK);
            InsertAPKOPF(_dwAPK, app.company);
            TBMain.Rows.InsertAt(_dwAPK, 0);
        }
        public void DELAPK(Dictionary<string, object> pm)
        {
            dwData = TBMain.NewRow();
            dwData["APKMANDANT"] = app.Mandant;
            dwData["APKANRKRS"] = (string)pm["ANRKRS"];
            dwData["APKALFDNR"] = (string)pm["ALFDNR"];
            DAPK01(dwData);
            dwData = APF.TBMain.NewRow();
            dwData["APFMANDANT"] = app.Mandant;
            dwData["APFANRKRS"] = (string)pm["ANRKRS"];
            dwData["APFALFDNR"] = (string)pm["ALFDNR"];
            APF.DAPF01(dwData);
            dwData = APZ.TBMain.NewRow();
            dwData["APZMANDANT"] = app.Mandant;
            dwData["APZANRKRS"] = (string)pm["ANRKRS"];
            dwData["APZALFDNR"] = (string)pm["ALFDNR"];
            APZ.DAPZ01(dwData);

        }

        public void COPYFLOW(Dictionary<string, object> pm)
        {
            dwData = TBMain.NewRow(); 
            dwData["APKMANDANT"] = app.Mandant;
            dwData["APKANRKRS"] = ((string)pm["SFLOW"]).Substring(0, 2);
            dwData["APKALFDNR"] = ((string)pm["SFLOW"]).Substring(2, 6);
            SResult = QAPK04(dwData);
            foreach (DataRow row in SResult.Tables[0].Rows)
            { 
                row["APKANRKRS"] = ((string)pm["TFLOW"]).Substring(0, 2);
                row["APKALFDNR"] = ((string)pm["TFLOW"]).Substring(2, 6);
                DAPK01(row);
                InsertAPKOPF(row, app.company);

            }
            APF.COPYFLOW(pm);
        }
        public void NEWAPK(Dictionary<string, object> pm)
        {
            dwData = TBMain.NewRow();
            SetUpNewRow(ref dwData);
            dwData["APKMANDANT"] = app.Mandant;
            string lfd = (string)pm["LFD"];
            if ((string)pm["LFD"] == "")
            {
                lfd = VSDDAT.SD22.GETNEXT("0022", (string)pm["KRS"], "APKAUFTR");
            }
            dwData["APKSTUFE"] = (string)pm["ARTST"];
            dwData["APKANRKRS"] = (string)pm["KRS"];
            dwData["APKALFDNR"] = lfd;
            dwData["APKSPEZIF"] = Helpers.Helper.Left(((string)pm["DES"]).Trim().PadRight(50), 50);
            dwData["APKSPSTA"] = (string)pm["SPSTA"];
            dwData["APKSPGRD"] = (string)pm["SPGRD"]; 
            Insert(dwData);
        }

        VAPFOLGE _APF;
        public VAPFOLGE APF
        {
            get
            {
                if (_APF == null) _APF = new VAPFOLGE();
                return _APF;
            }
        }
        VAPARTK _APEK;
        public VAPARTK APEK
        {
            get
            {
                if (_APEK == null) _APEK = new VAPARTK();
                return _APEK;
            }
        }

        VAPARTE _ARE;
        public VAPARTE ARE
        {
            get
            {
                if (_ARE == null) _ARE = new VAPARTE();
                return _ARE;
            }
        }
        VAPZUORD _APZ;
        public VAPZUORD APZ
        {
            get
            {
                if (_APZ == null) _APZ = new VAPZUORD();
                return _APZ;
            }
        }
    }

    public partial class VAPKOPF
    {
        public string APKANRKRS { get { if (dwMaster == null) return ""; return dwMaster["APKANRKRS"].ToString(); } set { if (dwMaster == null) return; dwMaster["APKANRKRS"] = value; OnPropertyChanged("APKANRKRS", value); } } //lENGth 2
        public string APKALFDNR { get { if (dwMaster == null) return ""; return dwMaster["APKALFDNR"].ToString(); } set { if (dwMaster == null) return; dwMaster["APKALFDNR"] = value; OnPropertyChanged("APKALFDNR", value); } } //lENGth 6
        public string APKSTUFE { get { if (dwMaster == null) return ""; return dwMaster["APKSTUFE"].ToString(); } set { if (dwMaster == null) return; dwMaster["APKSTUFE"] = value; OnPropertyChanged("APKSTUFE", value); } } //lENGth 1
        public string APKSPEZIF { get { if (dwMaster == null) return ""; return dwMaster["APKSPEZIF"].ToString(); } set { if (dwMaster == null) return; dwMaster["APKSPEZIF"] = value; OnPropertyChanged("APKSPEZIF", value); } } //lENGth 50
        public string APKZUSATZKZ1 { get { if (dwMaster == null) return ""; return dwMaster["APKZUSATZKZ1"].ToString(); } set { if (dwMaster == null) return; dwMaster["APKZUSATZKZ1"] = value; OnPropertyChanged("APKZUSATZKZ1", value); } } //lENGth 1
        public string APKZUSATZKZ2 { get { if (dwMaster == null) return ""; return dwMaster["APKZUSATZKZ2"].ToString(); } set { if (dwMaster == null) return; dwMaster["APKZUSATZKZ2"] = value; OnPropertyChanged("APKZUSATZKZ2", value); } } //lENGth 1
        public string APKZUSATZKZ3 { get { if (dwMaster == null) return ""; return dwMaster["APKZUSATZKZ3"].ToString(); } set { if (dwMaster == null) return; dwMaster["APKZUSATZKZ3"] = value; OnPropertyChanged("APKZUSATZKZ3", value); } } //lENGth 1
        public string APKZUSATZKZ4 { get { if (dwMaster == null) return ""; return dwMaster["APKZUSATZKZ4"].ToString(); } set { if (dwMaster == null) return; dwMaster["APKZUSATZKZ4"] = value; OnPropertyChanged("APKZUSATZKZ4", value); } } //lENGth 1
        public string APKGZUSKZ1 { get { if (dwMaster == null) return ""; return dwMaster["APKGZUSKZ1"].ToString(); } set { if (dwMaster == null) return; dwMaster["APKGZUSKZ1"] = value; OnPropertyChanged("APKGZUSKZ1", value); } } //lENGth 1
        public string APKGZUSKZ2 { get { if (dwMaster == null) return ""; return dwMaster["APKGZUSKZ2"].ToString(); } set { if (dwMaster == null) return; dwMaster["APKGZUSKZ2"] = value; OnPropertyChanged("APKGZUSKZ2", value); } } //lENGth 1
        public string APKGZUSKZ3 { get { if (dwMaster == null) return ""; return dwMaster["APKGZUSKZ3"].ToString(); } set { if (dwMaster == null) return; dwMaster["APKGZUSKZ3"] = value; OnPropertyChanged("APKGZUSKZ3", value); } } //lENGth 1
        public string APKGZUSKZ4 { get { if (dwMaster == null) return ""; return dwMaster["APKGZUSKZ4"].ToString(); } set { if (dwMaster == null) return; dwMaster["APKGZUSKZ4"] = value; OnPropertyChanged("APKGZUSKZ4", value); } } //lENGth 1

        #region======ColumnSchema==========
        /*
                 public string APKMANDANT { get { if (dwMaster == null) return ""; return dwMaster["APKMANDANT"].ToString(); } set { if (dwMaster == null) return; dwMaster["APKMANDANT"] = value; OnPropertyChanged("APKMANDANT", value); } } //lENGth 2
                 public string APKWERK { get { if (dwMaster == null) return ""; return dwMaster["APKWERK"].ToString(); } set { if (dwMaster == null) return; dwMaster["APKWERK"] = value; OnPropertyChanged("APKWERK", value); } } //lENGth 3
                 public string APKSPSTA { get { if (dwMaster == null) return ""; return dwMaster["APKSPSTA"].ToString(); } set { if (dwMaster == null) return; dwMaster["APKSPSTA"] = value; OnPropertyChanged("APKSPSTA", value); } } //lENGth 1
                 public string APKSPGRD { get { if (dwMaster == null) return ""; return dwMaster["APKSPGRD"].ToString(); } set { if (dwMaster == null) return; dwMaster["APKSPGRD"] = value; OnPropertyChanged("APKSPGRD", value); } } //lENGth 30
                 public string APKABT { get { if (dwMaster == null) return ""; return dwMaster["APKABT"].ToString(); } set { if (dwMaster == null) return; dwMaster["APKABT"] = value; OnPropertyChanged("APKABT", value); } } //lENGth 3
                 public string APKVERSAE { get { if (dwMaster == null) return ""; return dwMaster["APKVERSAE"].ToString(); } set { if (dwMaster == null) return; dwMaster["APKVERSAE"] = value; OnPropertyChanged("APKVERSAE", value); } } //lENGth 1
                 public double APKVERSZL { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["APKVERSZL"].ToString()); } set { if (dwMaster == null) return; dwMaster["APKVERSZL"] = value; OnPropertyChanged("APKVERSZL", value); } } //lENGth 0
                 public double APKAENDZL { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["APKAENDZL"].ToString()); } set { if (dwMaster == null) return; dwMaster["APKAENDZL"] = value; OnPropertyChanged("APKAENDZL", value); } } //lENGth 0
                 public string APKAENDBEN { get { if (dwMaster == null) return ""; return dwMaster["APKAENDBEN"].ToString(); } set { if (dwMaster == null) return; dwMaster["APKAENDBEN"] = value; OnPropertyChanged("APKAENDBEN", value); } } //lENGth 8
                 public double APKAENDDAT { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["APKAENDDAT"].ToString()); } set { if (dwMaster == null) return; dwMaster["APKAENDDAT"] = value; OnPropertyChanged("APKAENDDAT", value); } } //lENGth 0
                 public string APKNEUBEN { get { if (dwMaster == null) return ""; return dwMaster["APKNEUBEN"].ToString(); } set { if (dwMaster == null) return; dwMaster["APKNEUBEN"] = value; OnPropertyChanged("APKNEUBEN", value); } } //lENGth 8
                 public double APKNEUDAT { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["APKNEUDAT"].ToString()); } set { if (dwMaster == null) return; dwMaster["APKNEUDAT"] = value; OnPropertyChanged("APKNEUDAT", value); } } //lENGth 0
                 public string APKZUSTAND { get { if (dwMaster == null) return ""; return dwMaster["APKZUSTAND"].ToString(); } set { if (dwMaster == null) return; dwMaster["APKZUSTAND"] = value; OnPropertyChanged("APKZUSTAND", value); } } //lENGth 4
                 public string APKKAAGRA { get { if (dwMaster == null) return ""; return dwMaster["APKKAAGRA"].ToString(); } set { if (dwMaster == null) return; dwMaster["APKKAAGRA"] = value; OnPropertyChanged("APKKAAGRA", value); } } //lENGth 5
                 public string APKKAAGRP { get { if (dwMaster == null) return ""; return dwMaster["APKKAAGRP"].ToString(); } set { if (dwMaster == null) return; dwMaster["APKKAAGRP"] = value; OnPropertyChanged("APKKAAGRP", value); } } //lENGth 2
                 public string APKGRGRP1 { get { if (dwMaster == null) return ""; return dwMaster["APKGRGRP1"].ToString(); } set { if (dwMaster == null) return; dwMaster["APKGRGRP1"] = value; OnPropertyChanged("APKGRGRP1", value); } } //lENGth 3
                 public string APKGRGRP2 { get { if (dwMaster == null) return ""; return dwMaster["APKGRGRP2"].ToString(); } set { if (dwMaster == null) return; dwMaster["APKGRGRP2"] = value; OnPropertyChanged("APKGRGRP2", value); } } //lENGth 3
                 public string APKGRGRP3 { get { if (dwMaster == null) return ""; return dwMaster["APKGRGRP3"].ToString(); } set { if (dwMaster == null) return; dwMaster["APKGRGRP3"] = value; OnPropertyChanged("APKGRGRP3", value); } } //lENGth 3
                 public string APKGRGRP4 { get { if (dwMaster == null) return ""; return dwMaster["APKGRGRP4"].ToString(); } set { if (dwMaster == null) return; dwMaster["APKGRGRP4"] = value; OnPropertyChanged("APKGRGRP4", value); } } //lENGth 3
                 public string APKGRGRP5 { get { if (dwMaster == null) return ""; return dwMaster["APKGRGRP5"].ToString(); } set { if (dwMaster == null) return; dwMaster["APKGRGRP5"] = value; OnPropertyChanged("APKGRGRP5", value); } } //lENGth 3
                 public string APKGSTUFE { get { if (dwMaster == null) return ""; return dwMaster["APKGSTUFE"].ToString(); } set { if (dwMaster == null) return; dwMaster["APKGSTUFE"] = value; OnPropertyChanged("APKGSTUFE", value); } } //lENGth 2
                 public string APKGRRAS { get { if (dwMaster == null) return ""; return dwMaster["APKGRRAS"].ToString(); } set { if (dwMaster == null) return; dwMaster["APKGRRAS"] = value; OnPropertyChanged("APKGRRAS", value); } } //lENGth 3
                 public string APKTLVF1 { get { if (dwMaster == null) return ""; return dwMaster["APKTLVF1"].ToString(); } set { if (dwMaster == null) return; dwMaster["APKTLVF1"] = value; OnPropertyChanged("APKTLVF1", value); } } //lENGth 3
                 public double APKTLAFOV1 { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["APKTLAFOV1"].ToString()); } set { if (dwMaster == null) return; dwMaster["APKTLAFOV1"] = value; OnPropertyChanged("APKTLAFOV1", value); } } //lENGth 0
                 public double APKTLAFOB1 { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["APKTLAFOB1"].ToString()); } set { if (dwMaster == null) return; dwMaster["APKTLAFOB1"] = value; OnPropertyChanged("APKTLAFOB1", value); } } //lENGth 0
                 public string APKTLVF2 { get { if (dwMaster == null) return ""; return dwMaster["APKTLVF2"].ToString(); } set { if (dwMaster == null) return; dwMaster["APKTLVF2"] = value; OnPropertyChanged("APKTLVF2", value); } } //lENGth 3
                 public double APKTLAFOV2 { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["APKTLAFOV2"].ToString()); } set { if (dwMaster == null) return; dwMaster["APKTLAFOV2"] = value; OnPropertyChanged("APKTLAFOV2", value); } } //lENGth 0
                 public double APKTLAFOB2 { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["APKTLAFOB2"].ToString()); } set { if (dwMaster == null) return; dwMaster["APKTLAFOB2"] = value; OnPropertyChanged("APKTLAFOB2", value); } } //lENGth 0
                 public string APKTLVF3 { get { if (dwMaster == null) return ""; return dwMaster["APKTLVF3"].ToString(); } set { if (dwMaster == null) return; dwMaster["APKTLVF3"] = value; OnPropertyChanged("APKTLVF3", value); } } //lENGth 3
                 public double APKTLAFOV3 { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["APKTLAFOV3"].ToString()); } set { if (dwMaster == null) return; dwMaster["APKTLAFOV3"] = value; OnPropertyChanged("APKTLAFOV3", value); } } //lENGth 0
                 public double APKTLAFOB3 { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["APKTLAFOB3"].ToString()); } set { if (dwMaster == null) return; dwMaster["APKTLAFOB3"] = value; OnPropertyChanged("APKTLAFOB3", value); } } //lENGth 0
                 public string APKTLVF4 { get { if (dwMaster == null) return ""; return dwMaster["APKTLVF4"].ToString(); } set { if (dwMaster == null) return; dwMaster["APKTLVF4"] = value; OnPropertyChanged("APKTLVF4", value); } } //lENGth 3
                 public double APKTLAFOV4 { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["APKTLAFOV4"].ToString()); } set { if (dwMaster == null) return; dwMaster["APKTLAFOV4"] = value; OnPropertyChanged("APKTLAFOV4", value); } } //lENGth 0
                 public double APKTLAFOB4 { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["APKTLAFOB4"].ToString()); } set { if (dwMaster == null) return; dwMaster["APKTLAFOB4"] = value; OnPropertyChanged("APKTLAFOB4", value); } } //lENGth 0
                 public string APKTLVF5 { get { if (dwMaster == null) return ""; return dwMaster["APKTLVF5"].ToString(); } set { if (dwMaster == null) return; dwMaster["APKTLVF5"] = value; OnPropertyChanged("APKTLVF5", value); } } //lENGth 3
                 public double APKTLAFOV5 { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["APKTLAFOV5"].ToString()); } set { if (dwMaster == null) return; dwMaster["APKTLAFOV5"] = value; OnPropertyChanged("APKTLAFOV5", value); } } //lENGth 0
                 public double APKTLAFOB5 { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["APKTLAFOB5"].ToString()); } set { if (dwMaster == null) return; dwMaster["APKTLAFOB5"] = value; OnPropertyChanged("APKTLAFOB5", value); } } //lENGth 0
                 public string APKTLVF6 { get { if (dwMaster == null) return ""; return dwMaster["APKTLVF6"].ToString(); } set { if (dwMaster == null) return; dwMaster["APKTLVF6"] = value; OnPropertyChanged("APKTLVF6", value); } } //lENGth 3
                 public double APKTLAFOV6 { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["APKTLAFOV6"].ToString()); } set { if (dwMaster == null) return; dwMaster["APKTLAFOV6"] = value; OnPropertyChanged("APKTLAFOV6", value); } } //lENGth 0
                 public double APKTLAFOB6 { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["APKTLAFOB6"].ToString()); } set { if (dwMaster == null) return; dwMaster["APKTLAFOB6"] = value; OnPropertyChanged("APKTLAFOB6", value); } } //lENGth 0
                 public string APKTLVF7 { get { if (dwMaster == null) return ""; return dwMaster["APKTLVF7"].ToString(); } set { if (dwMaster == null) return; dwMaster["APKTLVF7"] = value; OnPropertyChanged("APKTLVF7", value); } } //lENGth 3
                 public double APKTLAFOV7 { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["APKTLAFOV7"].ToString()); } set { if (dwMaster == null) return; dwMaster["APKTLAFOV7"] = value; OnPropertyChanged("APKTLAFOV7", value); } } //lENGth 0
                 public double APKTLAFOB7 { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["APKTLAFOB7"].ToString()); } set { if (dwMaster == null) return; dwMaster["APKTLAFOB7"] = value; OnPropertyChanged("APKTLAFOB7", value); } } //lENGth 0
                 public string APKMU { get { if (dwMaster == null) return ""; return dwMaster["APKMU"].ToString(); } set { if (dwMaster == null) return; dwMaster["APKMU"] = value; OnPropertyChanged("APKMU", value); } } //lENGth 1
                 public string APKMURLOD { get { if (dwMaster == null) return ""; return dwMaster["APKMURLOD"].ToString(); } set { if (dwMaster == null) return; dwMaster["APKMURLOD"] = value; OnPropertyChanged("APKMURLOD", value); } } //lENGth 2
                 public string APKMUPROD { get { if (dwMaster == null) return ""; return dwMaster["APKMUPROD"].ToString(); } set { if (dwMaster == null) return; dwMaster["APKMUPROD"] = value; OnPropertyChanged("APKMUPROD", value); } } //lENGth 2
                 public string APKMUCTOD { get { if (dwMaster == null) return ""; return dwMaster["APKMUCTOD"].ToString(); } set { if (dwMaster == null) return; dwMaster["APKMUCTOD"] = value; OnPropertyChanged("APKMUCTOD", value); } } //lENGth 1
                 public double APKMUDTRL { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["APKMUDTRL"].ToString()); } set { if (dwMaster == null) return; dwMaster["APKMUDTRL"] = value; OnPropertyChanged("APKMUDTRL", value); } } //lENGth 0
                 public string APKMUBIRL { get { if (dwMaster == null) return ""; return dwMaster["APKMUBIRL"].ToString(); } set { if (dwMaster == null) return; dwMaster["APKMUBIRL"] = value; OnPropertyChanged("APKMUBIRL", value); } } //lENGth 8
                 public double APKVERSZLRL { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["APKVERSZLRL"].ToString()); } set { if (dwMaster == null) return; dwMaster["APKVERSZLRL"] = value; OnPropertyChanged("APKVERSZLRL", value); } } //lENGth 0
                 public string APKVERSBEN { get { if (dwMaster == null) return ""; return dwMaster["APKVERSBEN"].ToString(); } set { if (dwMaster == null) return; dwMaster["APKVERSBEN"] = value; OnPropertyChanged("APKVERSBEN", value); } } //lENGth 8
                 public string APKLO { get { if (dwMaster == null) return ""; return dwMaster["APKLO"].ToString(); } set { if (dwMaster == null) return; dwMaster["APKLO"] = value; OnPropertyChanged("APKLO", value); } } //lENGth 2
                 public string APKEXPROD { get { if (dwMaster == null) return ""; return dwMaster["APKEXPROD"].ToString(); } set { if (dwMaster == null) return; dwMaster["APKEXPROD"] = value; OnPropertyChanged("APKEXPROD", value); } } //lENGth 1
                 public string APKKART1 { get { if (dwMaster == null) return ""; return dwMaster["APKKART1"].ToString(); } set { if (dwMaster == null) return; dwMaster["APKKART1"] = value; OnPropertyChanged("APKKART1", value); } } //lENGth 2
                 public double APKKZMIN1 { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["APKKZMIN1"].ToString()); } set { if (dwMaster == null) return; dwMaster["APKKZMIN1"] = value; OnPropertyChanged("APKKZMIN1", value); } } //lENGth 0
                 public double APKKZMAX1 { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["APKKZMAX1"].ToString()); } set { if (dwMaster == null) return; dwMaster["APKKZMAX1"] = value; OnPropertyChanged("APKKZMAX1", value); } } //lENGth 0
                 public double APKKMINWMGE1 { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["APKKMINWMGE1"].ToString()); } set { if (dwMaster == null) return; dwMaster["APKKMINWMGE1"] = value; OnPropertyChanged("APKKMINWMGE1", value); } } //lENGth 0
                 public double APKKABST1 { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["APKKABST1"].ToString()); } set { if (dwMaster == null) return; dwMaster["APKKABST1"] = value; OnPropertyChanged("APKKABST1", value); } } //lENGth 0
                 public string APKKZE1 { get { if (dwMaster == null) return ""; return dwMaster["APKKZE1"].ToString(); } set { if (dwMaster == null) return; dwMaster["APKKZE1"] = value; OnPropertyChanged("APKKZE1", value); } } //lENGth 2
                 public string APKKART2 { get { if (dwMaster == null) return ""; return dwMaster["APKKART2"].ToString(); } set { if (dwMaster == null) return; dwMaster["APKKART2"] = value; OnPropertyChanged("APKKART2", value); } } //lENGth 2
                 public double APKKZMIN2 { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["APKKZMIN2"].ToString()); } set { if (dwMaster == null) return; dwMaster["APKKZMIN2"] = value; OnPropertyChanged("APKKZMIN2", value); } } //lENGth 0
                 public double APKKZMAX2 { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["APKKZMAX2"].ToString()); } set { if (dwMaster == null) return; dwMaster["APKKZMAX2"] = value; OnPropertyChanged("APKKZMAX2", value); } } //lENGth 0
                 public double APKKMINWMGE2 { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["APKKMINWMGE2"].ToString()); } set { if (dwMaster == null) return; dwMaster["APKKMINWMGE2"] = value; OnPropertyChanged("APKKMINWMGE2", value); } } //lENGth 0
                 public double APKKABST2 { get { if (dwMaster == null) return 0.0; return  Convert.ToDouble(dwMaster["APKKABST2"].ToString()); } set { if (dwMaster == null) return; dwMaster["APKKABST2"] = value; OnPropertyChanged("APKKABST2", value); } } //lENGth 0
                 public string APKKZE2 { get { if (dwMaster == null) return ""; return dwMaster["APKKZE2"].ToString(); } set { if (dwMaster == null) return; dwMaster["APKKZE2"] = value; OnPropertyChanged("APKKZE2", value); } } //lENGth 2
                 public string APKFILLER { get { if (dwMaster == null) return ""; return dwMaster["APKFILLER"].ToString(); } set { if (dwMaster == null) return; dwMaster["APKFILLER"] = value; OnPropertyChanged("APKFILLER", value); } } //lENGth 34
        */
        #endregion
    }
}

